package com.cykj.vo;

import lombok.Data;

import java.util.Map;

/**
 * @BelongsProject: smart_recruit_backend
 * @BelongsPackage: com.cykj.vo
 * @Author: 张昌煜
 * @CreateTime: 2025-08-28 10:29
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class InterviewDataDO {
    private String sessionId;
    private String job;
    private String question;
    private Integer questionIndex;
    private Integer totalQuestions;
    private Boolean isCompleted;
    private String feedback;
    private String overallFeedback;
    private Integer askedCount;
    private Integer answeredCount;
    private Integer mockId;
    private Map<String, Object> additionalData;

    // 构建器方法
    public static InterviewDataDO buildBasicResponse(
            String sessionId, String job, String question,
            Integer questionIndex, Integer totalQuestions, Boolean isCompleted) {
        InterviewDataDO data = new InterviewDataDO();
        data.setSessionId(sessionId);
        data.setJob(job);
        data.setQuestion(question);
        data.setQuestionIndex(questionIndex);
        data.setTotalQuestions(totalQuestions);
        data.setIsCompleted(isCompleted);
        return data;
    }
}
